<template>
  <div class="app-container">
   <el-form :inline="true">
      <el-form-item label="文件名称">
        <el-input
          v-model="queryParams.fileName"
          placeholder="请输入文件名称"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
        <el-button type="primary" icon="el-icon-plus" size="mini" @click="handleAdd" v-hasPermi="['system:menu:add']">新增</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>
<script>

export default {
  data() {
    return {
      // 遮罩层
      loading: true,
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,
      // 查询参数
      queryParams: {
        fileName: undefined
      },
      // 表单参数
      form: {},
      // 表单校验
      rules: {
        fileName: [
          { required: true, message: "文件名称不能为空", trigger: "blur" }
        ]
      }
    };
  },
  created() {
    console.log("created.....")
  },
  methods: {
    // 表单重置
    reset() {
        console.log("reset.....")
        this.resetForm("form");
    },
    /** 搜索按钮操作 */
    handleQuery() {
        console.log("handleQuery.....")
    },
    /** 新增按钮操作 */
    handleAdd(row) {
      console.log("handleAdd.....")
    }
  }
}
</script>